package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsSearchHistoryMapper;
import com.qf.pojo.DtsCollect;
import com.qf.pojo.DtsSearchHistory;
import com.qf.service.DtsSearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zwnan
 */
@Service
public class DtsSearchHistoryServiceImpl implements DtsSearchHistoryService {

    @Autowired
    private DtsSearchHistoryMapper dtsSearchHistoryMapper;

    @Override
    public IPage<DtsSearchHistory> selectPage(Integer page, Integer limit, String sort, String order) {
        IPage<DtsSearchHistory> iPage = new Page<>(page,limit);

        return dtsSearchHistoryMapper.selectPage(iPage,new QueryWrapper<DtsSearchHistory>());
    }
}
